package com.hpin.mlxteacher.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Aaron on 15/12/28.
 */
public class VideoBean implements Parcelable {

    public boolean isCancle;//是否取消发送
    public long millisecond;//录制的毫秒

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeByte(isCancle ? (byte) 1 : (byte) 0);
        dest.writeLong(this.millisecond);
    }

    public VideoBean() {
    }

    protected VideoBean(Parcel in) {
        this.isCancle = in.readByte() != 0;
        this.millisecond = in.readLong();
    }

    public static final Creator<VideoBean> CREATOR = new Creator<VideoBean>() {
        public VideoBean createFromParcel(Parcel source) {
            return new VideoBean(source);
        }

        public VideoBean[] newArray(int size) {
            return new VideoBean[size];
        }
    };
}
